package com.enjoyor.soa.traffic.core.efoms.service;

import com.enjoyor.soa.traffic.core.efoms.domain.WorkordersInfo;
import com.enjoyor.soa.traffic.util.pojo.Page;

import java.util.List;
import java.util.Map;

public interface IWorkordersInfoService {
	
	public WorkordersInfo selectWorkordersBaseById(String workordersId);
	
    public WorkordersInfo selectWorkordersInfoById(String workordersId);
    
	public List<WorkordersInfo> selectWorkordersInfoList(String workordersId, String repStartDate, String repEndDate,
			String devCategoryCode, String devTypeCode, String devId, String devName, String key, String devAreaCode,
			String devDeptId, String failureTypeCode, String failureDescrible, String repSourceCode,
			String workordersStatusCode, String lableClick);
	
	public List<WorkordersInfo> selectWorkordersInfoList(String devCategoryCode, String devTypeCode, String devId);
	
    public Page selectWorkordersInfoPage(Page page, String workordersId, String repStartDate, String repEndDate,
			String devCategoryCode, String devTypeCode, String devId, String devName, String key, String devAreaCode,
			String devDeptId, String failureTypeCode, String failureDescrible, String repSourceCode,
			String workordersStatusCode, String orderSeq, String orderMode, String lableClick, List<String> noStatusCodeList);
    
    public String insertWorkordersInfo(WorkordersInfo workordersInfo, String personName);

    public String updateWorkordersInfo(WorkordersInfo workordersInfo, String personName);

    public String deleteWorkordersInfo(String workordersId, String personName);

	/**
	 *获取初始化操作记录条数
	 * @return
	 */
	Map<String, Object> getOperationCount(String startTime,String endTime);

	public int countSureWKorderInfo(String startTime,String endTime);

	public int countFackbackWKorderInfo(String startTime,String endTime);

	public int countPressWKorderInfo(String startTime,String endTime);

	public int countPostponeWKorderInfo(String startTime,String endTimeo);

	public int countRejectWKorderInfo(String startTime,String endTime);

	public int countOverTimeWorkOder();

}
